package com.fly.demo.web.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fly.demo.web.entity.Users;
import com.fly.demo.web.repository.UserRepository;
import com.fly.demo.web.service.UsersService;

@Service
public class ServiceImpl implements UsersService
{
    @Autowired
    UserRepository userRepository;
    
    @Override
    public Users findByUserName(String userName)
    {
        return userRepository.findByUserName(userName);
    }
}
